﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Elegant;
using Elegant2.Business.Events;

namespace Elegant2.Business
{
    class FacadeBusiness
    {
        public FacadeBusiness()
        {

        }
        /// <summary>
        /// Método Realiza a chamada do TicketOpenReadFile
        /// </summary>
        /// <param name="filePath">Caminho do arquivo xml</param>
        /// <param name="t">Objeto Ticket</param>
        public void ReadXmlFile(string filePath, TicketEventDeclaration ticketEvent)
        {
            TicketOpenReadFile openRead = new TicketOpenReadFile();
            openRead.TicketReadFileXml(filePath, ticketEvent);
        }

        /// <summary>
        /// Método Realiza a chamada da PictureOpenReadFile
        /// </summary>
        /// <param name="pictures">Array de Strings que contem o caminho das Imagens.</param>
        /// <param name="i">Objeto Imagem</param>
        public void ReadPictureFile(string[] pictures, Imagem i)
        {
            PictureOpenReadFile openPicture = new PictureOpenReadFile();
            openPicture.LoadPictures(pictures, i);
        }
    }
}
